Check collection type before transforming #183
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Improve Error Handling in Forge SDK
Description
This PR aims to enhance the error handling capabilities of the Forge SDK, specifically addressing issues related to unexpected API responses and improving the overall robustness of the SDK.
Changes Proposed
transformCollection()
method in theForge
class to implement more robust error checking.Motivation and Context
Recent issues with API integrations have highlighted the need for more robust error handling within the Forge SDK. Specifically, unexpected response formats from the API have led to unhandled exceptions, causing disruptions in applications using the SDK.
This PR addresses these issues by implementing best practices for API error handling, as outlined in various resources:
How Has This Been Tested?
Types of changes
Checklist:
Additional Notes
This PR is part of a larger initiative to improve the overall reliability and user experience of applications integrating with the Forge SDK.